import React from 'react';
import { connect } from 'dva';
import styles from './Todos.css';
import TodoApp from '../components/TodoApp';
import TodoInput from '../components/TodoInput';

function Todos(props) {
  return (
    <div className={styles.normal}>
      <TodoApp {...props}/>
    </div>
  );
}

function mapStateToProps(state) {
  return {
    todos:{...state.todos}
  };
}

export default connect(mapStateToProps)(Todos);
